<template>
  <div id="app" style="height: auto;">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {

    }
  },
  methods:{
    goBack(){
      this.$router.replace({path:'/'});
      //window.history.back();
    }
  },
  destroyed(){
    window.removeEventListener('popstate',this.goBack,false);
  },
  mounted(){
    if(window.history && window.history.pushState){
      history.pushState(null,null,document.URL);
      window.addEventListener('popstate',this.goBack,false);
    }
  },

}
</script>

<style >
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  color: #2c3e50;
  font-size: 13px;
  background: #f0f2f5;
  height: auto;
}
*{
  margin: 0;
  padding: 0;
  /* text-align: left; */
  font-size: 12px;
}
.el-input--small .el-input__inner{
  text-align: left;
}

</style>
<style scoped="scoped">
  .el-form-item__error{
    left: 50% !important;
  }
</style>
